﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：快递费用管理
  //创建人：赵国伟
  //生成时间：2012/04/22 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Manage_DeliveryFeesManage : BaseManagePage
{
    protected string SelectOptionOfDelivery;
    protected string SelectOptionOfProvince;
    protected string SelectOptionOfCity ="";
    protected string SelectOptionOfArea = "";

    protected QueryDeliveryFeeAsPage q;
    protected List<DeliveryFeeInfo> listOfData;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            q = new QueryDeliveryFeeAsPage(true);
            SelectOptionOfDelivery = DeliveryManage.QueryDeliveryToSelectOption(q.DeliveryID.ToString());
            SelectOptionOfProvince = ProvinceCityAreasManage.QueryProvincesToSelectOption(q.ProvinceID.ToString());
            if (q.ProvinceID > 0)
                SelectOptionOfCity = ProvinceCityAreasManage.QueryCitiesToSelectOption(q.ProvinceID, q.CityID.ToString());
            if (q.CityID > 0)
                SelectOptionOfArea = ProvinceCityAreasManage.QueryAreasToSelectOption(q.CityID, q.AreaID.ToString());

            DeliveryManage bllDelivery = new DeliveryManage();
            listOfData = bllDelivery.QueryDeliveryFeeAsPage(q);

        }
    }
}